package models.cms;

import com.google.gson.annotations.Expose;
import models.sys.User;
import play.db.jpa.Model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * Created by sam on 16-2-14.
 */
@Entity(name="t_post_user_state")
public class PostUserState extends Model {
    @ManyToOne
    public Post post;
    @ManyToOne
    @Expose(serialize = false)
    public User user;
    public boolean favor;
    public boolean follow;
    public boolean voteup;
}
